package com.flyco.modules.sms.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyco.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 活动商品关联表
 * @Author: flyco
 * @Date:   2022-05-05
 * @Version: V1.0
 */
@Data
@TableName("sms_promotion_goods_ref")
@ApiModel(value="sms_promotion对象", description="活动表")
public class SmsPromotionGoodsRef implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**所属活动*/
    @ApiModelProperty(value = "所属活动")
	private Long promotionId;
	/**商品id*/
    @Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
	private Long productId;
	/**商品名称*/
    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
	private String productName;
	/**商品编码*/
    @Excel(name = "商品编码", width = 15)
    @ApiModelProperty(value = "商品编码")
	private String productSn;
	/**活动商品图片*/
    @Excel(name = "活动商品图片", width = 15)
    @ApiModelProperty(value = "活动商品图片")
	private String productPic;
	/**价格*/
    @Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
	private java.math.BigDecimal price;
	/**状态：1：启用，0禁用*/
    @Excel(name = "状态：1：启用，0禁用", width = 15)
    @ApiModelProperty(value = "状态：1：启用，0禁用")
	@Dict(dicCode = "yn")
	private Integer status;
	/**商品库存*/
    @Excel(name = "商品库存", width = 15)
    @ApiModelProperty(value = "商品库存")
	private Integer stock;
	/**锁定库存*/
    @Excel(name = "锁定库存", width = 15)
    @ApiModelProperty(value = "锁定库存")
	private Integer lockStock;
	/**起订量*/
    @Excel(name = "起订量", width = 15)
    @ApiModelProperty(value = "起订量")
	private Integer minQuantity;
	/**每人限量*/
    @Excel(name = "每人限量", width = 15)
    @ApiModelProperty(value = "每人限量")
	private Integer maxQuantity;
	/**规格(每箱的数量)*/
	@Excel(name = "规格(每箱的数量)", width = 15)
	@ApiModelProperty(value = "规格(每箱的数量)")
	private Integer specs;
	/**优先级排序*/
    @Excel(name = "优先级排序", width = 15)
    @ApiModelProperty(value = "优先级排序")
	private Integer sort;
	/**创建人*/
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**更新人*/
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;
}
